Edit AUTOEXEC.BAT
AUTOEXEC.BAT is a special-purpose batch file containing commands that are automatically executed by MS-DOS whenever the computer is turned on or rebooted in an MS-DOS configuration.
To EDIT AUTOEXEC.BAT file, use one of the following procedure sets, depending on the current environment:
1) Edit AUTOEXEC.BAT from MS-DOS:
a) Type the following commands at the DOS prompt and press ENTER:
COPY <drive>:\AUTOEXEC.BAT <drive>:\AUTOEXEC.OLD
EDIT <drive> C:\AUTOEXEC.BAT
(where <drive> is the letter of the hard drive that contains AUTOEXEC.BAT).
b) Use the arrow keys to move to the line(s) to be changed.
c) Add new command lines or edit existing lines.
d) Review all changes, checking for correct spelling (for example, commands, directories, filenames) and command syntax.
e) Select the 'File' menu and select 'Save'.
f) Select the 'File' menu and select 'Exit'.
g) Press CTRL+ALT+DEL to reboot the computer and for the changes to take effect.
2) Edit AUTOEXEC.BAT in WINDOWS 95:
a) Click the 'Start' button to display the 'Start' menu.
b) Select 'Programs', 'Accessories', and 'Notepad'. (A blank document appears.)
c) In Notepad, select the 'File' menu and select 'Open...'. (The 'Open' dialog box appears.)
d) Type the following in the 'File name' box:
<drive>:\AUTOEXEC.BAT
(where <drive> is the letter of the hard drive that contains AUTOEXEC.BAT).
e) Click 'Open'.
f) Select the 'File' menu and select 'Save As...'. (The 'Save As' dialog box appears.)
g) Type the following in the 'File name' box:
<drive>:\AUTOEXEC.OLD
(where <drive> is the letter of the hard drive that contains AUTOEXEC.BAT).
h) Click 'Save'.
i) Use the arrow keys to move to the line(s) to be changed.
j) Add new command lines or edit existing lines.
k) Review all changes, checking for correct spelling and command syntax.
l) Select the 'File' menu and select 'Save As...'. (The 'Save As' dialog box appears.)
m) Type the following in the 'File name' box:
<drive>:\AUTOEXEC.BAT
(where <drive> is the letter of the hard drive that contains AUTOEXEC.BAT).
n) Click 'Save'. (The 'Save As' dialog box appears.)
o) Click 'Yes' to save changes.
p) Select the 'File' menu and select 'Exit'.
q) Restart the computer for the changes to take effect.
3) If unable to save/overwrite AUTOEXEC.BAT, exit without saving changes and change the file attributes on AUTOEXEC.BAT. Then re-edit file, make changes, save as AUTOEXEC.BAT and exit editor.
a) Type the following command at the DOS prompt and press ENTER:
ATTRIB -x AUTOEXEC.BAT
(Where x is the attribute to be removed)
b) EXAMPLES:
1] To remove Read-only attribute type the following command at the DOS prompt:
ATTRIB -R AUTOEXEC.BAT
2] To remove Hidden attribute type the following command at the DOS prompt:
ATTRIB -H AUTOEXEC.BAT